<template>
    查看租户{{ username }}
</template>
<script>
import { onMounted,ref } from 'vue';
import { getUsername } from "@/api/Home";
export default{
    setup(){
        var username = ref("zhangsan1111111")
        onMounted(async ()=>{
            console.log("数据获取");
            let person = await getUsername();
            username.value = person.data.name
        })
        return {username}
    }
}
</script>